import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import vueComposition from "@vue/composition-api" 
Vue.use(vueComposition)
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
import TIM from '@tencentcloud/chat';
import tim from './utils/tim.js'
import { TUICallKitServer } from "@/components/TUICallKit/src/index";
import utils from '@/utils'
import uView from '@/uni_modules/uview-ui'
import store from './store/index.js'
Vue.prototype.$TUICallKit = TUICallKitServer;
Vue.prototype.$TIM = TIM	
Vue.prototype.$tim = tim.tim //引入后生成的tim服务
Vue.prototype.$store = store
Vue.use(utils)
Vue.use(uView)
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif